package pl.edu.uw.come.mooba;

import java.util.List;
import pl.edu.uw.come.mooba.domain.User;

/**
 * TODO use hashmap, not list
 * @author Piotr Kochański
 */
public class UserManager {
    public static User findUserById(List<User> userList, Long id){
        for (User user : userList) {
            if (user.getId().equals(id))
                return user;
        }
        return null;
    }
}
